cac3f33aa245933f1d8a7b57ca926cf7497ac210,rest-basics/src/test/java/demo/HypermediaApiDocumentation.java,HypermediaApiDocumentation,customersListExample,#,86

Before Change



        this.mockMvc.perform(get("/v2/customers"))
                .andExpect(status().isOk())
                .andDo(document("customers-list-example")
                        .withResponseFields(
                                fieldWithPath("_links.self.href").description("A link to the Customers"),
                             //   fieldWithPath("_links.self.templated").description("is the URI templated"),
                                fieldWithPath("_embedded.customerList").description("An array of <<resources-customer, Customer resources>>")));
    }

    @Test

After Change



        this.mockMvc.perform(get("/v2/customers"))
                .andExpect(status().isOk())
                .andDo(document("customers-list-example", responseFields(
                        fieldWithPath("_links.self.href").description("A link to the Customers"),
                        fieldWithPath("_embedded.customers").description("An array of <<resources-customer, Customer resources>>"))));
    }

    @Test